import {del, get, post, put} from "@/api/base/http";
import {ApiUri} from "@/api/base/ApiPath";

let ApiPath = new ApiUri();

export class Event {
    static Gets = () => {
        return get(ApiPath.Event.LIST);
    }

    static Save = (Event: object) => {
        return post(ApiPath.Event.ROOT, Event);
    }

    static Update = (Event: object) => {
        return put(ApiPath.Event.ROOT, Event);
    }

    static Delete = (Id: number) => {
        return del(ApiPath.Event.ROOT + Id);
    }
}
